package com.charger.cooperation.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.cooperation.mapper.InvestorsProjectsMapper;
import com.charger.cooperation.domain.InvestorsProjects;
import com.charger.cooperation.service.IInvestorsProjectsService;

/**
 * 中间表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class InvestorsProjectsServiceImpl extends ServiceImpl<InvestorsProjectsMapper, InvestorsProjects>
        implements IInvestorsProjectsService
{
    @Autowired
    private InvestorsProjectsMapper investorsProjectsMapper;

    /**
     * 查询中间表
     * 
     * @param id 中间表主键
     * @return 中间表
     */
    @Override
    public InvestorsProjects selectInvestorsProjectsById(Long id)
    {
        return investorsProjectsMapper.selectInvestorsProjectsById(id);
    }

    /**
     * 查询中间表列表
     * 
     * @param investorsProjects 中间表
     * @return 中间表
     */
    @Override
    public List<InvestorsProjects> selectInvestorsProjectsList(InvestorsProjects investorsProjects)
    {
        return investorsProjectsMapper.selectInvestorsProjectsList(investorsProjects);
    }

    /**
     * 新增中间表
     * 
     * @param investorsProjects 中间表
     * @return 结果
     */
    @Override
    public int insertInvestorsProjects(InvestorsProjects investorsProjects)
    {
        return investorsProjectsMapper.insertInvestorsProjects(investorsProjects);
    }

    /**
     * 修改中间表
     * 
     * @param investorsProjects 中间表
     * @return 结果
     */
    @Override
    public int updateInvestorsProjects(InvestorsProjects investorsProjects)
    {
        return investorsProjectsMapper.updateInvestorsProjects(investorsProjects);
    }

    /**
     * 批量删除中间表
     * 
     * @param ids 需要删除的中间表主键
     * @return 结果
     */
    @Override
    public int deleteInvestorsProjectsByIds(Long[] ids)
    {
        return investorsProjectsMapper.deleteInvestorsProjectsByIds(ids);
    }

    /**
     * 删除中间表信息
     * 
     * @param id 中间表主键
     * @return 结果
     */
    @Override
    public int deleteInvestorsProjectsById(Long id)
    {
        return investorsProjectsMapper.deleteInvestorsProjectsById(id);
    }
}
